<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
		<title>会员系统</title>
		<!-- 样 式 文 件 -->
		<link rel="stylesheet" href="/assets/library/core/css/core.css?v={:config('version')}" />
		<style>
			.layui-form-pane .layui-form-label{width:200px;}
			.layui-form-pane .layui-input-block {margin-left: 200px;}
		</style>
        {block name="style"}{/block}
	</head>
    <!-- 代 码 结 构 -->
	{block name="body"}
	<body>
		<div style="display: flex;">
            <div class="layui-bg-blue" style="width:200px;height:100vh;border-right: 1px solid #c1c1c1;">
                <ul class="layui-nav layui-nav-tree layui-bg-blue">
                    <li class="layui-nav-item {eq name='url' value='/member.php/index/index.html'} layui-this {/eq} "><a href="{:url('index')}">站点管理</a></li>
                    {notempty name="domain"}
                        {volist name="domain" id="vo"}
                    <li class="layui-nav-item {eq name='url' value=":url('form',['id'=>$vo['id']])"} layui-this {/eq}"><a href="{:url('form',['id'=>$vo['id']])}">{$vo['host']}站点配置</a></li>
                    {/volist}
                    {/notempty}
                    <li class="layui-nav-item {eq name='url' value=":url('repassword')"} layui-this {/eq}"><a href="{:url('repassword')}">修改密码</a></li>
                    <li class="layui-nav-item"><a href="javascript:;" id="logout">退出登录</a></li>
                </ul>
            </div>
            <div style="flex:1">
                <div style="margin: 10px;background-color: whitesmoke;">
                    <blockquote class="layui-elem-quote">
                        {notempty name="memberNotice"} 用户公告: {$memberNotice} {/notempty}
                    </blockquote>
                    {block name="content"}
                    {/block}
                </div>
            </div>
        </div>
	</body>
	
	{/block}
    <!-- 资 源 引 入 -->
		<script src="/assets/library/layui/layui.js?v=12{:config('version')}"></script>
		<script src="/assets/library/core/core.js?v=12{:config('version')}"></script>
    {block name="script"}

    {/block}
	<script>
		layui.use(['jquery','element','layer'], function() {
			$ = layui.jquery;
			layer = layui.layer;
			$('.logout').on('click',function(){
				layer.confirm('真的要退出吗？', {
					btn: ['确定', '取消'] //按钮
				}, function(){
					window.location.href="{:url('logout')}";
				}, function(){
					layer.closeAll();
				});
			})
		}
		
	</script>
</html>

